package com.beijing.springbootclustersession.mapper;

import com.beijing.springbootclustersession.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Authther: mrwu
 * @date:2021/4/1-04
 * @Description:com.beijing.springbootclustersession.mapper
 */

@Mapper
public interface UserService {
    @Select("select * from user")
    List<User> getAllUsers();
    @Select("select * from user where name=#{name} and password=#{password} limit 1")
    User findUser(User user);
}
